package com.zhuss.controller.product;

import com.zhuss.bean.bo.product.preline.CreatePrelineSignBo;
import com.zhuss.bean.bo.product.preline.DeletePrelineSignBo;
import com.zhuss.bean.bo.product.preline.UpdatePrelineSignBo;
import com.zhuss.common.BaseController;
import com.zhuss.common.OperateService;
import com.zhuss.exception.DzcxException;
import com.zhuss.product.preline.PrelineSignOperateServiceExt;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.web.bind.annotation.*;


/**
 * @description: 招募报名操作的Controller
 * @author: zhushanshuo
 * @create: Wed Jan 06 16:26:20 CST 2021
 **/
@RestController
@RequestMapping("/prelineSign")
public class PrelineSignOperateController extends BaseController {
	
	@Autowired
	@Qualifier("prelineSignOperateService")
	private OperateService<Void, Object> prelineSignOperateService;
	
	@Autowired
	@Qualifier("prelineSignOperateServiceExt")
	private PrelineSignOperateServiceExt prelineSignOperateServiceExt;
	
	/**
	 * 创建
	 * @param bo
	 * @throws DzcxException
	 */
	@ResponseBody
    @PostMapping("/create")
    public void create(@RequestBody CreatePrelineSignBo bo) throws DzcxException {
		
		prelineSignOperateService.create(bo);
    }
	
	
	/**
	 * 修改
	 * @param bo
	 * @throws DzcxException
	 */
	@ResponseBody
    @PostMapping("/update")
    public void update(@RequestBody UpdatePrelineSignBo bo) throws DzcxException {
		
		prelineSignOperateService.update(bo);
    }
	
	/**
	 * 删除
	 * @param bo
	 * @throws DzcxException
	 */
	@ResponseBody
    @PostMapping("/delete")
    public void delete(@RequestBody DeletePrelineSignBo bo) throws DzcxException {
		
		prelineSignOperateService.delete(bo);
    }




	
}
